package com.even.camerarecoder

import android.app.Application
import android.content.Context
import com.evendai.loglibrary.Timber

class App : Application() {

    companion object {
        lateinit var sContext: Context
    }

    override fun onCreate() {
        super.onCreate()
        sContext = this
        Timber.init(this, BuildConfig::class.java)
        Thread.setDefaultUncaughtExceptionHandler { t, e ->
            Timber.fe(e, "发生了未捕捉异常")
        }
    }

}